home *** CD-ROM | disk | FTP | other *** search
/ CD ROM Paradise Collection 4 / CD ROM Paradise Collection 4 1995 Nov.iso / win / slnot100.zip / SAMPLE.HS_ / SAMPLE.HS
INI File  |  1994-11-06  |  2KB  |  95 lines

  1. [Settings]
  2. Comment=This is a sample Host
  3. Phone=
  4. Emulation=4
  5. Speed=5
  6. DataBits=1
  7. StopBits=0
  8. Parity=0
  9. Prompt=$
  10. GetFile=sx -k {filename}
  11. SendFile=rx -bc {filename}
  12. Protocol=2
  13. www=lynx
  14. Interrupt=^C
  15. Timeout=50
  16. TickleHost=-1
  17. HostInit=0
  18. UNIXLSColumn=0
  19. IsManualLogin=0
  20.  
  21. [login]
  22. n=64
  23. l1=# Please read the Help information on Login scripts
  24. l2=#   by pressing the "Help" button in the Host screen.
  25. l3=# There are some important issues discussed
  26. l4=#   there concerning C-shell use.
  27. l5=
  28. l6=# This is a sample LOGIN script
  29. l7=# -------------------------------------------------------------
  30. l8=# Anything following the "#" comment symbol
  31. l9=#   is ignored
  32. l10 send "^M"
  33. l11=# Valid script commands are:
  34. l12=#   dial
  35. l13=#   hangup
  36. l14=#   send "string"        # see notes below on strings
  37. l10=
  38. l15=#   send loginid
  39. l16=#   send password
  40. l17=#   send break
  41. l18=#   waitfor "string" nseconds
  42. l19=#   waitfor connect nseconds
  43. l20=#   waitfor prompt nseconds
  44. l21=#   delay nseconds
  45. l22=#   send "string1" waitfor "string2"  nseconds retry ntimes
  46. l23=#   send break waitfor "string" nseconds retry ntimes
  47. l24=
  48. l25=# Note on "strings":
  49. l26=#    strings can contain control keys
  50. l27=#         control keys are preceded by "^"
  51. l28=#    For instance, to send a Control-D:
  52. l29=#         send "^D"
  53. l30=#    More importantly, to send the string: "exit" followed
  54. l31=#        by a carriage return:
  55. l32=#        send "exit^M"
  56. l33=
  57. l34=# Examples of the retry commands:
  58. l35=# -------
  59. l36=#  send "^M" waitfor "login" 5 retry 10
  60. l37=#       means: send a carriage-return and wait for string "login" for 5 seconds
  61. l38=#       and retry this operation 10 times
  62. l39=
  63. l40=# =================================
  64. l41=#  Sample login script follows
  65. l42=# =================================
  66. l43=
  67. l44=dial
  68. l45=
  69. l46=waitfor connect 30
  70. l47=
  71. l48=delay 3    # give the host 3 seconds breathing room
  72. l49=
  73. l50=send "^M" waitfor "ogin"  3  retry 5
  74. l51=
  75. l52=#Notice that we wait for "ogin" instead of "login:"
  76. l53=#because the prompt on some systems is "Login" and on some it's "login"
  77. l54=
  78. l55=send loginid
  79. l56=send "^M"     # be sure to send the carriage-return
  80. l57=
  81. l58=waitfor "ssword" 20
  82. l59=send password
  83. l60=send "^M"
  84. l61=
  85. l62=waitfor prompt 30
  86. l63=
  87. l64=# ====================================
  88.  
  89. [logout]
  90. n=3
  91. l1=# This is a sample LOGOUT script
  92. l2=send "exit^M"
  93. l3=hangup
  94.  
  95.